/* tslint:disable */
/* eslint-disable */

import React, { CSSProperties, SVGAttributes, FunctionComponent } from 'react';
import { getIconColor } from './helper';

interface Props extends Omit<SVGAttributes<SVGElement>, 'color'> {
  size?: number;
  color?: string | string[];
}

const DEFAULT_STYLE: CSSProperties = {
  display: 'block',
};

const IconClose: FunctionComponent<Props> = ({ size, color, style: _style, ...rest }) => {
  const style = _style ? { ...DEFAULT_STYLE, ..._style } : DEFAULT_STYLE;

  return (
    <svg viewBox="0 0 1024 1024" width={size + 'px'} height={size + 'px'} style={style} {...rest}>
      <path
        d="M744.512 279.488c16.672 16.64 16.672 43.68 0 60.32L572.352 512l172.16 172.16a42.656 42.656 0 0 1-60.32 60.352L512 572.352l-172.16 172.16a42.656 42.656 0 0 1-60.352-60.32L451.648 512l-172.16-172.16a42.656 42.656 0 1 1 60.32-60.352L512 451.648l172.16-172.16c16.672-16.672 43.712-16.672 60.352 0z"
        fill={getIconColor(color, 0, '#333333')}
      />
    </svg>
  );
};

IconClose.defaultProps = {
  size: 18,
};

export default IconClose;
